function render() {
    const template = lit.html`
        <zbiti-page .page="${config.page}" @search="${searchHandle}"></zbiti-page>
        <zb-table .list="${config.page.list}">
            <zb-table-column type="selection"></zb-table-column>
            <zb-table-column label="操作">${(item) => lit.html`
                <a href='javascript:$.zbiti.popup("修改","${_baseUri}/mss/zmod/edit/${item.${idName}}", 1000, 600)'>修改</a>
                <a href="javascript:void(0);" onclick="deletes('${item.${idName}}')">删除</a>`}
            </zb-table-column>
${zbTableColumns}
        </zb-table>
    `;
    lit.render(template, document.getElementById("table1Div"));
}

const config = {
    searchUrl: '/${apiUrl}/page',
    deleteUrl: '/${apiUrl}/delete',
    page: window.page
}

const {search, searchHandle, deletes} = useIndex(config);

$(document).ready(function () {
    search();
})
